package com.mengye.control.courseInfo;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mengye.bean.CourseInfoBean;
import com.mengye.control.LoginControl;
import com.mengye.utils.MyUtils;

/**
 * Servlet implementation class CourseInfoModifyControl
 */
@WebServlet("/CourseInfoModifyControl")
public class CourseInfoModifyControl extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
	/**
	 * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		CourseInfoBean courseInfoB  = MyUtils.convertRequest2BeanWithFileUpload(request, CourseInfoBean.class);
		courseInfoB.setT_id(LoginControl.user_name);
		System.out.println(courseInfoB.getC_Name());
	}

}
